package com.ttxs.generator.remote.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ttxs.generator.vo.Token;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class AbstractDTO {
    @JsonIgnore
    private String url;
    @JsonIgnore
    private Token token;

    public AbstractDTO() {
    }

    public AbstractDTO(String url) {
        this(url, null);
    }

    public AbstractDTO(String url, Token token) {
        this.url = url;
        this.token = token;
    }

}
